/*
 * Context.java
 *
 * Created on Aug 16, 2007, 12:32:37 PM
 *
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.avid.context;

import com.avid.jaxb.TESTTABLE;
import java.io.File;
import java.util.Iterator;
import java.util.List;

import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;

/**
 *
 * @author Administrator
 */
public class Context_TT {

    public Context_TT() throws JAXBException {
        JAXBContext jc = JAXBContext.newInstance("com.avid.jaxb");
        Unmarshaller unmarshaller = jc.createUnmarshaller();
        
        TESTTABLE testTable = (TESTTABLE) unmarshaller.unmarshal(new File( "append_tt.xml"));
        List tests = testTable.getTESTSUITEOrTEST();
        
        Iterator itr = tests.iterator();
                    while (itr.hasNext()) {
                TESTTABLE.TEST test = (TESTTABLE.TEST) itr.next();
                
                         System.out.println("test : " + test.getName());
                          System.out.println("desc : " + test.getDesc());  
                          System.out.println("params : " + test.getPARAMS());   
            }


    }
    public static void main (String [] args) throws JAXBException {
        Context_TT ct = new Context_TT();
        
    }
}
